/** 错误拦截中间件 */
export const errorMiddleware = ({ response }, next) => {
    try {
        next();
    }
    catch (err) {
        response.setHeader("Content-Type", "text/plain;charset=utf-8");
        response.statusCode = 500;
        response.end("系统错误");
    }
};
